//
//  LBHPerson.h
//  iOSDemo
//
//  Created by Steve on 2021/3/8.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface AddCalculator : NSObject

@property (nonatomic, assign) NSInteger sumresult;
- (AddCalculator * (^)(NSInteger sumresult))add;
@end




@interface LBHPerson : NSObject
- (void)personInstanceMethod;


- (LBHPerson *(^)(NSString *food))eat;
- (LBHPerson *(^)(NSString *where))sleep;
@property (nonatomic, assign) NSInteger result;
- (LBHPerson *)calculator:(NSInteger(^)(NSInteger result))block;
- (LBHPerson *)makecalculator:(void (^)(AddCalculator *addcalculator))block;

@end

NS_ASSUME_NONNULL_END
